<?php
/**
 *Copyright (c) <2017> <copyright taodingfei>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

namespace Zeus\Routing\Engines;

use Zeus\Routing\RouterInterface;

class LeagueRouteEngine implements RouterInterface
{

    /**
     * 向路由引擎中注册路由
     *
     * @param string|array $method
     * @param string $url
     * @param callable $callable
     */
    public function register($method, $url, $callable)
    {
        // TODO: Implement register() method.
    }

    /**
     * 注册GET方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function get($url, $callable)
    {
        // TODO: Implement get() method.
    }

    /**
     * 注册POST方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function post($url, $callable)
    {
        // TODO: Implement post() method.
    }

    /**
     * 注册PUT方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function put($url, $callable)
    {
        // TODO: Implement put() method.
    }

    /**
     * 注册PATCH方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function patch($url, $callable)
    {
        // TODO: Implement patch() method.
    }

    /**
     * 注册DELETE方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function delete($url, $callable)
    {
        // TODO: Implement delete() method.
    }

    /**
     * 注册HEAD方法路由
     *
     * @param string $url
     * @param callable $callable
     */
    public function head($url, $callable)
    {
        // TODO: Implement head() method.
    }

    /**
     * 路由的分组注册
     *
     * @param string $prefix
     * @param $callable
     * @return mixed
     */
    public function group($prefix, $callable)
    {
        // TODO: Implement group() method.
    }

    /**
     * 根据请求，分发路由
     *
     * @param \Zeus\Http\Request $request
     * @param callable $handler
     * @return mixed
     */
    public function dispatch($request, $handler)
    {
        // TODO: Implement dispatch() method.
    }
}